'use strict';

const _ = require('lodash');
const EX_REGEX = /(\d+\.?\d*|[\+\-\*\/])/gim;

function exec(ex_str) {
    const strArr = ex_str.match(EX_REGEX);
    const list = _.map(strArr, s => {
        if(_.isNumber(s)) {
            if(s.indexOf('.')) {
                return parseFloat(s);
            }else {
                return parseInt(s);
            }
        }
        return s;
    });

    _check(list);
    return _exec(list);
};

function _check(list) {

}

function _exec(list) {
    const operatorList = [];
    const numberList = [];


};

exec('1+2 + 32 * 5 + 3 * (1+26)');
